package com.ruoyi.student_club.constants;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author lin
 * @Date 2022/1/12 14:36
 */
@AllArgsConstructor
@Getter
public enum ExamineState implements IEnum<Integer> {

    /**
     * 未通过
     */
    FAILED(0,"未通过"),

    /**
     * 审核中
     */
    EXAMINING(1,"审核中"),

    /**
     * 通过
     */
    SUCCESS(2,"通过")
    ;

    @EnumValue
    private Integer code;

    @EnumValue
    private String msg;

    @Override
    public Integer getValue() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
